package com.eclipse.e20200202_数据库连接池工具包.com.qf.app1.student.dao;

import java.util.List;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import com.eclipse.e20200202_数据库连接池工具包.com.qf.app1.student.servlet.Student;
import com.eclipse.e20200202_数据库连接池工具包.com.qf.app1.utils.JDBCUtils;

/**
 * StudentDao的实现类
 *
 */
public class StudentDaoImpl implements IStudentDao {
	private static final Logger logger = LogManager.getLogger();

	private static final String SQL_SELECT = "select * from student";

	public List<Student> search() {
		logger.trace("search 方法被调用");
		List<Student> students = JDBCUtils.select(SQL_SELECT, Student.class);
		return students;

	}

}
